import 'package:flutter/cupertino.dart';

class RefreshWidget extends StatefulWidget {
  final String name;
  const RefreshWidget({required this.name,super.key});

  @override
  State<RefreshWidget> createState() => _RefreshWidgetState();
}

class _RefreshWidgetState extends State<RefreshWidget> {
  @override
  void initState() {
    super.initState();
    print('我被初始化了${widget.name}');
  }
  @override
  Widget build(BuildContext context) {
    print('我重新构建了${widget.name}');
    return Text(widget.name);
  }
}
